package com.huaguoguo.admin.controller;

import com.huaguoguo.admin.service.UserService;
import com.huaguoguo.pojo.TbUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * description:
 * author:huaguoguo
 * Date: 2019/1/29
 * Time: 14:36
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping(value = "user",method = RequestMethod.GET)
    public TbUser getUserInfo(){
        TbUser tbUser = userService.getUserInfo();
        return tbUser;
    }
}
